package com.lvmama.rhino.pojo.comment.query;

import java.util.Date;

/**
 * @Author:caoyong
 * @Description:
 * @Date：2017/9/19
 */
public class CommentStatisticsQuery {
    /**
     * 产品id
     */
    private String productId;
    /**
     * 是否取消分组
     */
    private boolean cancelGroupBy;

    /**
     * 是否取消最近天数查询
     */
    private boolean cancelLatestDay;

    /**
     * 最近天数
     */
    private Integer days;

    private Date startTime;
    private Date endTime;

    public boolean isCancelGroupBy() {
        return cancelGroupBy;
    }

    public void setCancelGroupBy(boolean cancelGroupBy) {
        this.cancelGroupBy = cancelGroupBy;
    }

    public boolean isCancelLatestDay() {
        return cancelLatestDay;
    }

    public void setCancelLatestDay(boolean cancelLatestDay) {
        this.cancelLatestDay = cancelLatestDay;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days==0? null: days;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "CommentStatisticsQuery{" +
                "productId=" + productId +
                ", cancelGroupBy=" + cancelGroupBy +
                ", cancelLatestDay=" + cancelLatestDay +
                ", days=" + days +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
